﻿<%@ Page Language="C#" MasterPageFile="~/Police/Police.master" AutoEventWireup="true"
    CodeFile="SearchTransfer.aspx.cs" Inherits="Police_SearchTransfer" Title="无标题页"
    StylesheetTheme="Content" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table border="0" cellpadding="0" cellspacing="0" class="dialog" width="100%">
        <caption>
            <span>兵员调动查询</span></caption>
        <tr>
            <td style="padding: 0; margin: 0">
                <table border="0" cellpadding="4" cellspacing="0" width="100%">
                    <tr>
                        <td valign="top">
                            &nbsp;<asp:RadioButton ID="RadioButton1" ForeColor="OrangeRed" runat="server" Text="调入查询"
                                AutoPostBack="True" Checked="True" GroupName="Soldiertype" OnCheckedChanged="RadioButton1_CheckedChanged" />
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:RadioButton ID="RadioButton2" runat="server" ForeColor="OrangeRed" Text="调出查询"
                                AutoPostBack="True" GroupName="Soldiertype" OnCheckedChanged="RadioButton1_CheckedChanged" />
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:RadioButton ID="RadioButton3" runat="server" ForeColor="OrangeRed" Text="精确查询"
                                AutoPostBack="True" GroupName="Soldiertype" OnCheckedChanged="RadioButton1_CheckedChanged" />
                        &nbsp;
                        </td>
                        <td valign="top" colspan="2">
                            起始时间：
                            <asp:TextBox ID="StartDate" runat="server" Width="80px"></asp:TextBox>
                            <ajaxToolkit:CalendarExtender ID="ceStartDate" runat="server" Animated="False" Format="yyyy-MM-dd"
                                TargetControlID="StartDate">
                            </ajaxToolkit:CalendarExtender>
                            <asp:RequiredFieldValidator ID="rfvStartDate" ControlToValidate="StartDate" runat="server"
                                ErrorMessage="*"></asp:RequiredFieldValidator>
                            终止时间：
                            <asp:TextBox ID="EndDate" runat="server" Width="80px"></asp:TextBox>
                            <ajaxToolkit:CalendarExtender ID="ceEndDate" runat="server" Animated="False" Format="yyyy-MM-dd"
                                TargetControlID="EndDate">
                            </ajaxToolkit:CalendarExtender>
                            <asp:RequiredFieldValidator ID="rfvEndDate" ControlToValidate="EndDate" runat="server"
                                ErrorMessage="*"></asp:RequiredFieldValidator>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <asp:Panel ID="Panel1" runat="server">
                                <table border="0" cellpadding="0" cellspacing="0" width="98%">
                                    <tr>
                                        <td align="left">
                                           <asp:RadioButtonList ID="rlDR" runat="server" RepeatDirection="Horizontal">
                                            </asp:RadioButtonList>
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: center">
                                            <asp:Button ID="btnDR" runat="server" Text="查询" OnClick="btnDR_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="Panel2" runat="server">
                                <table border="0" cellpadding="0" cellspacing="0" width="98%">
                                    <tr>
                                        <td>
                                            <asp:RadioButtonList ID="rlDC" runat="server" RepeatDirection="Horizontal">
                                            </asp:RadioButtonList>
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: center">
                                            <asp:Button ID="btnDC" runat="server" Text="查询" OnClick="btnDC_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="Panel3" runat="server">
                                <table border="0" cellpadding="0" cellspacing="0" width="98%">
                                    <tr>
                                        <td>
                                            &nbsp; 调出单位：
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddlDCDepartmentList" Width="230px" runat="server">
                                            </asp:DropDownList>
                                        </td>
                                        <td style="width: 60px">
                                            调入单位：
                                        </td>
                                        <td align="left" style="width: 330px">
                                            &nbsp;&nbsp;<asp:DropDownList ID="ddlDRDepartmentList" runat="server">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" style="text-align: center">
                                            <br />
                                            <asp:Button ID="btEx" runat="server" Text="查询" OnClick="btnEx_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <asp:Label ID="lblInfo" runat="server" Text=""></asp:Label>
    <asp:HiddenField ID="StrSql" runat="server" />
    <br />
    <asp:GridView ID="gvTransfer" runat="server" AutoGenerateColumns="False" DataKeyNames="TransferID,SoldierID"
        Caption="<span>兵员调动记录</span>" OnSelectedIndexChanging="gvTransfer_SelectedIndexChanging"
        OnRowDataBound="gvTransfer_RowDataBound">
        <Columns>
            <asp:TemplateField ItemStyle-HorizontalAlign="Left">
                <HeaderStyle Width="30px" HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" />
                <ItemTemplate>
                    <asp:Label ID="ID" runat="server" ForeColor="#666666"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="姓名" />
            <asp:BoundField DataField="FromUnit" HeaderText="调出单位" />
            <asp:BoundField DataField="ToUnit" HeaderText="调入单位" />
            <asp:BoundField DataField="TransferDate" DataFormatString="{0:yy-MM-dd}" HeaderText="调动时间" />
            <asp:BoundField DataField="Approver" HeaderText="批准人" />
            <asp:BoundField DataField="SetUserName" HeaderText="操作员" />
            <asp:BoundField DataField="Acceptor" HeaderText="接收人" />
            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <asp:ImageButton ID="TransferImage" ImageUrl="~/Images/TransfSolider.gif" ToolTip="调动"
                        CommandName="Select" runat="server" CausesValidation="false" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <HeaderStyle HorizontalAlign="Left" />
        <RowStyle HorizontalAlign="Left" />
    </asp:GridView>
    <asp:Panel Width="100%" runat="server" ID="panPage" Visible="false">
        <div style="padding: 4px;">
            <div style="float: left">
                <asp:Label ID="lbGridInfo" runat="server"></asp:Label>
            </div>
            <div style="float: right">
                <asp:LinkButton ID="btnFirst" runat="server" CommandArgument="First" CommandName="Page"
                    Visible="false" OnClick="btnFirst_Click">首页</asp:LinkButton>
                <asp:LinkButton ID="btnPrev" runat="server" CommandArgument="Prev" CommandName="Page"
                    Visible="false" OnClick="btnPrev_Click">上一页</asp:LinkButton>
                <asp:LinkButton ID="btnNext" runat="server" CommandArgument="Next" CommandName="Page"
                    Visible="false" OnClick="btnNext_Click">下一页</asp:LinkButton>
                <asp:LinkButton ID="btnLast" runat="server" CommandArgument="Last" CommandName="Page"
                    Visible="false" OnClick="btnLast_Click">末页</asp:LinkButton>
                转到：第
                <asp:DropDownList ID="JumpList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="JumpList_SelectedIndexChanged">
                </asp:DropDownList>
                页
            </div>
        </div>
    </asp:Panel>
</asp:Content>
